﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200148D RID: 5261
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class UnlockAvatarSkinScNotify : IMessage<UnlockAvatarSkinScNotify>, IMessage, IEquatable<UnlockAvatarSkinScNotify>, IDeepCloneable<UnlockAvatarSkinScNotify>, IBufferMessage
	{
		// Token: 0x1700423B RID: 16955
		// (get) Token: 0x0600EB31 RID: 60209 RVA: 0x00274ACC File Offset: 0x00272CCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<UnlockAvatarSkinScNotify> Parser
		{
			get
			{
				return UnlockAvatarSkinScNotify._parser;
			}
		}

		// Token: 0x1700423C RID: 16956
		// (get) Token: 0x0600EB32 RID: 60210 RVA: 0x00274AD3 File Offset: 0x00272CD3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return UnlockAvatarSkinScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700423D RID: 16957
		// (get) Token: 0x0600EB33 RID: 60211 RVA: 0x00274AE5 File Offset: 0x00272CE5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return UnlockAvatarSkinScNotify.Descriptor;
			}
		}

		// Token: 0x0600EB34 RID: 60212 RVA: 0x00274AEC File Offset: 0x00272CEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UnlockAvatarSkinScNotify()
		{
		}

		// Token: 0x0600EB35 RID: 60213 RVA: 0x00274AF4 File Offset: 0x00272CF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UnlockAvatarSkinScNotify(UnlockAvatarSkinScNotify other) : this()
		{
			this.skinId_ = other.skinId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600EB36 RID: 60214 RVA: 0x00274B19 File Offset: 0x00272D19
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UnlockAvatarSkinScNotify Clone()
		{
			return new UnlockAvatarSkinScNotify(this);
		}

		// Token: 0x1700423E RID: 16958
		// (get) Token: 0x0600EB37 RID: 60215 RVA: 0x00274B21 File Offset: 0x00272D21
		// (set) Token: 0x0600EB38 RID: 60216 RVA: 0x00274B29 File Offset: 0x00272D29
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SkinId
		{
			get
			{
				return this.skinId_;
			}
			set
			{
				this.skinId_ = value;
			}
		}

		// Token: 0x0600EB39 RID: 60217 RVA: 0x00274B32 File Offset: 0x00272D32
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as UnlockAvatarSkinScNotify);
		}

		// Token: 0x0600EB3A RID: 60218 RVA: 0x00274B40 File Offset: 0x00272D40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(UnlockAvatarSkinScNotify other)
		{
			return other != null && (other == this || (this.SkinId == other.SkinId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600EB3B RID: 60219 RVA: 0x00274B70 File Offset: 0x00272D70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.SkinId != 0U)
			{
				num ^= this.SkinId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600EB3C RID: 60220 RVA: 0x00274BAF File Offset: 0x00272DAF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600EB3D RID: 60221 RVA: 0x00274BB7 File Offset: 0x00272DB7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600EB3E RID: 60222 RVA: 0x00274BC0 File Offset: 0x00272DC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.SkinId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.SkinId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600EB3F RID: 60223 RVA: 0x00274BF4 File Offset: 0x00272DF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.SkinId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SkinId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600EB40 RID: 60224 RVA: 0x00274C32 File Offset: 0x00272E32
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(UnlockAvatarSkinScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.SkinId != 0U)
			{
				this.SkinId = other.SkinId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600EB41 RID: 60225 RVA: 0x00274C63 File Offset: 0x00272E63
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600EB42 RID: 60226 RVA: 0x00274C6C File Offset: 0x00272E6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.SkinId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005D21 RID: 23841
		private static readonly MessageParser<UnlockAvatarSkinScNotify> _parser = new MessageParser<UnlockAvatarSkinScNotify>(() => new UnlockAvatarSkinScNotify());

		// Token: 0x04005D22 RID: 23842
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005D23 RID: 23843
		public const int SkinIdFieldNumber = 6;

		// Token: 0x04005D24 RID: 23844
		private uint skinId_;
	}
}
